set(ProjectName "LogPlugin")
file(GLOB LogPlugin_ROOT_Cpp *.cc)
file(GLOB LogPlugin_ROOT_Hpp *.h)

add_library(LogPlugin STATIC
	${LogPlugin_ROOT_Cpp}
	${LogPlugin_ROOT_Hpp})

if(UNIX)

	if (CMAKE_BUILD_TYPE MATCHES "Release")
	else()
	endif()
	
	add_dependencies(LogPlugin Core )

	target_link_libraries(LogPlugin -static-libstdc++)
else()
	add_dependencies(LogPlugin Core )
	if(MSVC)
	else()
	target_link_libraries(LogPlugin -static-libstdc++)
	endif()
endif()

set_target_properties(LogPlugin PROPERTIES OUTPUT_NAME_DEBUG "LogPlugin")
set_target_properties(LogPlugin PROPERTIES PREFIX "")
set_target_properties(LogPlugin PROPERTIES 
	ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}
	RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}
	LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR})